<%@page import="modelo.Facturadetalle"%>
<%@page import="com.google.gson.reflect.TypeToken"%>
<%@page import="com.google.gson.Gson"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>


<%String json = request.getParameter("json");
System.out.println(json);
Gson gson = new Gson();

Facturadetalle [] detalle = gson.fromJson(json,Facturadetalle[].class) ;
System.out.println(detalle[0]);
%>








<div class="cabecera" style="width: 234px; background: green;">
	Carro de la compra
	</divs>
	<table id="mytabla">
		<tr>
			<td>producto</td>
			<td>descripcion</td>
			<td>unidades</td>
			<td>Precio</td>
		<tr>
			<% %>
		
		<tr>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
		<tr>
			<%%>
		
	</table>

	<div class="footer"></div>
	<table>
		<tr>
			<td>bruto</td>
			<td>dasdsa</td>
			<td>iva</td>
			<td></td>
			<td>total</td>
		<tr>
			<td></td>
		</tr>
		</tr>
	</table>
	<button onclick="creartabla()">dsadsaa</button>